Use the widget's state when drawing the indicator, as in GtkCheckButton.
authorOwen Taylor <otaylor@redhat.com>
Mon, 19 Nov 2001 22:39:03 +0000 (22:39 +0000)
committerOwen Taylor <otaylor@src.gnome.org>
Mon, 19 Nov 2001 22:39:03 +0000 (22:39 +0000)
Mon Nov 19 17:34:40 2001  Owen Taylor  <otaylor@redhat.com>

* gtk/gtkradiobutton.c (gtk_radio_button_draw_indicator):
Use the widget's state when drawing the indicator, as
in GtkCheckButton. This gives us color changes for
un-prelighted checkbuttons. (#63308, Matt Wilson)

ChangeLog
ChangeLog.pre-2-0
ChangeLog.pre-2-10
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
gtk/gtkradiobutton.c

index f4505662d412f46b58e9deda95c63017c9225d43..0658dd3ecb639806736a414fcba96c035faff019 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+Mon Nov 19 17:34:40 2001  Owen Taylor  <otaylor@redhat.com>
+
+       * gtk/gtkradiobutton.c (gtk_radio_button_draw_indicator):
+       Use the widget's state when drawing the indicator, as
+       in GtkCheckButton. This gives us color changes for
+       un-prelighted checkbuttons. (#63308, Matt Wilson)
+
 Mon Nov 19 17:11:23 2001  Owen Taylor  <otaylor@redhat.com>
 
        (Fixes related to #64428, Michael Meeks)
index f4505662d412f46b58e9deda95c63017c9225d43..0658dd3ecb639806736a414fcba96c035faff019 100644 (file)
@@ -1,3 +1,10 @@
+Mon Nov 19 17:34:40 2001  Owen Taylor  <otaylor@redhat.com>
+
+       * gtk/gtkradiobutton.c (gtk_radio_button_draw_indicator):
+       Use the widget's state when drawing the indicator, as
+       in GtkCheckButton. This gives us color changes for
+       un-prelighted checkbuttons. (#63308, Matt Wilson)
+
 Mon Nov 19 17:11:23 2001  Owen Taylor  <otaylor@redhat.com>
 
        (Fixes related to #64428, Michael Meeks)
index f4505662d412f46b58e9deda95c63017c9225d43..0658dd3ecb639806736a414fcba96c035faff019 100644 (file)
@@ -1,3 +1,10 @@
+Mon Nov 19 17:34:40 2001  Owen Taylor  <otaylor@redhat.com>
+
+       * gtk/gtkradiobutton.c (gtk_radio_button_draw_indicator):
+       Use the widget's state when drawing the indicator, as
+       in GtkCheckButton. This gives us color changes for
+       un-prelighted checkbuttons. (#63308, Matt Wilson)
+
 Mon Nov 19 17:11:23 2001  Owen Taylor  <otaylor@redhat.com>
 
        (Fixes related to #64428, Michael Meeks)
index f4505662d412f46b58e9deda95c63017c9225d43..0658dd3ecb639806736a414fcba96c035faff019 100644 (file)
@@ -1,3 +1,10 @@
+Mon Nov 19 17:34:40 2001  Owen Taylor  <otaylor@redhat.com>
+
+       * gtk/gtkradiobutton.c (gtk_radio_button_draw_indicator):
+       Use the widget's state when drawing the indicator, as
+       in GtkCheckButton. This gives us color changes for
+       un-prelighted checkbuttons. (#63308, Matt Wilson)
+
 Mon Nov 19 17:11:23 2001  Owen Taylor  <otaylor@redhat.com>
 
        (Fixes related to #64428, Michael Meeks)
index f4505662d412f46b58e9deda95c63017c9225d43..0658dd3ecb639806736a414fcba96c035faff019 100644 (file)
@@ -1,3 +1,10 @@
+Mon Nov 19 17:34:40 2001  Owen Taylor  <otaylor@redhat.com>
+
+       * gtk/gtkradiobutton.c (gtk_radio_button_draw_indicator):
+       Use the widget's state when drawing the indicator, as
+       in GtkCheckButton. This gives us color changes for
+       un-prelighted checkbuttons. (#63308, Matt Wilson)
+
 Mon Nov 19 17:11:23 2001  Owen Taylor  <otaylor@redhat.com>
 
        (Fixes related to #64428, Michael Meeks)
index f4505662d412f46b58e9deda95c63017c9225d43..0658dd3ecb639806736a414fcba96c035faff019 100644 (file)
@@ -1,3 +1,10 @@
+Mon Nov 19 17:34:40 2001  Owen Taylor  <otaylor@redhat.com>
+
+       * gtk/gtkradiobutton.c (gtk_radio_button_draw_indicator):
+       Use the widget's state when drawing the indicator, as
+       in GtkCheckButton. This gives us color changes for
+       un-prelighted checkbuttons. (#63308, Matt Wilson)
+
 Mon Nov 19 17:11:23 2001  Owen Taylor  <otaylor@redhat.com>
 
        (Fixes related to #64428, Michael Meeks)
index f4505662d412f46b58e9deda95c63017c9225d43..0658dd3ecb639806736a414fcba96c035faff019 100644 (file)
@@ -1,3 +1,10 @@
+Mon Nov 19 17:34:40 2001  Owen Taylor  <otaylor@redhat.com>
+
+       * gtk/gtkradiobutton.c (gtk_radio_button_draw_indicator):
+       Use the widget's state when drawing the indicator, as
+       in GtkCheckButton. This gives us color changes for
+       un-prelighted checkbuttons. (#63308, Matt Wilson)
+
 Mon Nov 19 17:11:23 2001  Owen Taylor  <otaylor@redhat.com>
 
        (Fixes related to #64428, Michael Meeks)
index 9e6e169661fccdb06fc371e4ef71f39023ff81f6..b1ce1e2eef4e2e8c7526c3724dc05d228ceda617 100644 (file)
@@ -621,6 +621,7 @@ gtk_radio_button_draw_indicator (GtkCheckButton *check_button,
       x = widget->allocation.x + indicator_spacing + GTK_CONTAINER (widget)->border_width;
       y = widget->allocation.y + (widget->allocation.height - indicator_size) / 2;
       
+      state_type = GTK_WIDGET_STATE (widget) == GTK_STATE_ACTIVE ? GTK_STATE_NORMAL : GTK_WIDGET_STATE (widget);
       if (GTK_TOGGLE_BUTTON (widget)->active)
        shadow_type = GTK_SHADOW_IN;
       else